<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
 <%@ page import="com.fit.user.dao.*"  %>
 <%@ page import="com.fit.user.entity.*"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
 <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%
String contextPath = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+contextPath+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
     <script language="JavaScript" src="dateselect.js"  charset="utf-8"></script>
    <title>My JSP 'manager_user_modify.jsp' starting page</title>
    
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link href="<%=contextPath%>/img/skin/skin.css" rel="stylesheet" type="text/css" />
		<link href="<%=contextPath%>/css/sic.css" rel="stylesheet" type="text/css" />
	<style type="text/css">

body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}


</style>
	
<%
  String policeID = request.getParameter("policeID");
  PoliceMsgDAO policeMsgDAO = new PoliceMsgDAO();
  PoliceMsgEntity policeMsgEntity = policeMsgDAO.getPoliceMsg(policeID);
 %>
 
  <!-- 得到所有的部门信息 -->
  <%
  SectionMsgDAO sectionMsgDAO = new SectionMsgDAO();
  List<SectionMsgEntity> list = sectionMsgDAO.getSectionMsg();
   %>
  </head>
  
  <body>
    





<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" >
  <tr>
    <td width="17" valign="top" background="<%=contextPath%>/img/skin/mail_leftbg.gif"><img src="<%=contextPath%>/img/skin/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="<%=contextPath%>/img/skin/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">用户修改</div></td>

      </tr>
    </table></td>
    <td width="16" valign="top" background="<%=contextPath%>/img/skin/mail_rightbg.gif"><img src="<%=contextPath%>/img/skin/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="<%=contextPath%>/img/skin/mail_leftbg.gif">&nbsp;</td>
  
    <td valign="top" bgcolor="#F7F8F9" align="center" class="table_boder" height="500px;">
  <br/> <br/> <br/>
      <form action="<%=basePath %>/policeMsg.do?oper=submitPoliceMsg_modify" method="post" enctype="multipart/form-data" onsubmit="return checkok()">
   <table class="table_boder" >
    <tr>
    <td align="right">警号：</td><td><input type="text" readonly="readonly" name="policeMsgEntity.policeID" value="<%=policeMsgEntity.getPoliceID() %>"/></td>
    <td align="right">姓名：</td><td><input type="text" readonly="readonly" style='width:200px' name="policeMsgEntity.policeName" value="<%=policeMsgEntity.getPoliceName() %>" /></td>
    </tr>
        <tr>
    <td align="right">性别：</td><td><input type="radio"  name="policeMsgEntity.policeSex" value="男" checked="checked" />男
                     <input type="radio"  name="policeMsgEntity.policeSex" value="女" />女
    </td>
    <td align="right">生日：</td><td><input type="text"  style='width:200px' readonly="readonly" name="policeMsgEntity.policeBith" value="<%=policeMsgEntity.getPoliceBith() %>" onfocus="HS_setDate(this)" /></td>
    </tr>
        <tr>
    <td align="right">部门编号：</td>
    <td>
    <select id="bmbhid"  name="policeMsgEntity.policeSect" style='width:150px'>
     <option value="0">-请选择-</option>
		<c:forEach var="sectionMsgEntity" items="<%=list%>">
    <option value="${sectionMsgEntity.sectionID }">${sectionMsgEntity.sectionName }</option>
		</c:forEach>
    </select>
    </td>
    
    <td align="right">权限：</td><td>
    <select name="policeMsgEntity.purview" style='width:200px'>
    <option value="0">高级管理员</option>
    <option value="1">管理员</option>
    <option value="2">部门领导</option>
    <option value="3" selected="selected">办案民警</option>
    </select>
    </td>
    </tr>
        <tr>
    <td align="right">密码：</td><td><input type="password" readonly="readonly" name="policeMsgEntity.policepw" value="<%=policeMsgEntity.getPolicepw() %>"/></td>
    </tr>
     <tr>
    <td align="right">相片：</td><td colspan="4"><input type="file" name="file" /><br/></td>
    </tr>
   <tr>
      <td colspan="2" align="center"><input type="submit" value="提交"> </td><td colspan="2"  align="center"><input type="button" name="cancel" value="重置"></td>
      
      </tr>
      </table>
    </form>
	
	</td>
    <td background="<%=contextPath%>/img/skin/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="<%=contextPath%>/img/skin/mail_leftbg.gif"><img src="<%=contextPath%>/img/skin/buttom_left2.gif" width="17" height="17" /></td>
    <td background="<%=contextPath%>/img/skin/buttom_bgs.gif"><img src="<%=contextPath%>/img/skin/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="<%=contextPath%>/img/skin/mail_rightbg.gif"><img src="<%=contextPath%>/img/skin/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
  </body>
</html>
